//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Globalization;
using System.Windows.Data;

namespace OpenLS.Spreadsheet.UI.Internals
{
    class FormattingConverter: IValueConverter
    {
        public string Format { get; set; }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return string.Format(Format, value);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotSupportedException();
        }
    }
}